import request from '@/utils/request'

export const getSectionById = id => {
  return request({
    method: 'GET',
    url: `/boss/course/section/getBySectionId`,
    params: {
      sectionId: id,
    }
  })
}

export const saveOrUpdateSection = data => {
  return request({
    method: 'POST',
    url: `/boss/course/section/saveOrUpdateSection`,
    data,
  })
}
